package com.sllp.C71S3TsllpShop.bean;

import java.sql.Timestamp;
import java.util.List;

public class User {
  
	
	private Integer id;

    private String loginName;

    private String trueName;

    private String pwd;

    private Integer sex;

    private String tel;

    private String email;

    private Timestamp registerTime;

    private Integer addr;

    private Integer loginState;

    private Integer state;

	private Integer image;

	private List<Address> address;

	private List<Image> image2;
	
	private Image image3;
	
	private Address address2;
	private List<Orders> orders;
	
	private List<Favorite> favorite;


    public User(Integer id, String loginName, String trueName, String pwd, Integer sex, String tel, String email, Timestamp registerTime, Integer addr, Integer loginState, Integer state, Integer image) {
        this.id = id;
        this.loginName = loginName;
        this.trueName = trueName;
        this.pwd = pwd;
        this.sex = sex;
        this.tel = tel;
        this.email = email;
        this.registerTime = registerTime;
        this.addr = addr;
        this.loginState = loginState;
        this.state = state;
		this.image = image;
    }

    public User() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName == null ? null : trueName.trim();
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Timestamp getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Timestamp registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getAddr() {
        return addr;
    }

    public void setAddr(Integer addr) {
        this.addr = addr;
    }

    public Integer getLoginState() {
        return loginState;
    }

    public void setLoginState(Integer loginState) {
        this.loginState = loginState;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

	public Integer getImage() {
        return image;
    }

    public void setImage(Integer image) {
        this.image = image;
    }


	

	public List<Address> getAddress() {
		return address;
	}

	public void setAddress(List<Address> address) {
		this.address = address;
	}

	public List<Image> getImage2() {
		return image2;
	}

	public void setImage2(List<Image> image2) {
		this.image2 = image2;
	}

	public Image getImage3() {
		return image3;
	}

	public void setImage3(Image image3) {
		this.image3 = image3;
	}

	public Address getAddress2() {
		return address2;
	}

	public void setAddress2(Address address2) {
		this.address2 = address2;
	}

	public List<Orders> getOrders() {
		return orders;
	}

	public void setOrders(List<Orders> orders) {
		this.orders = orders;
	}

	public List<Favorite> getFavorite() {
		return favorite;
	}

	public void setFavorite(List<Favorite> favorite) {
		this.favorite = favorite;
	}

}